<?php
$logout = (int)$_GET['logout'];
if ($logout) {
	setcookie("name",'',time()-3600,"/");
	header("location:../index.php",302);
}else{
	setcookie("name",'',time()-3600,"/");
	header("location:../index.php",302);
}